<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>OOF</title>
		<script src="..js/jquery-1.8.0.min.js"></script>
	</head>
	<body>
		<br><a href="../index.jsp">back</a>
		<br><hr color="red" />
		<h5>jquery控制css</h5>
		<br><br><a id="demo">红色</a>
		<script type="text/javascript">
			$("#demo").css("color", "#FF0000");
			/*如果传一个参数,表示要读取id为demo的color的值  */
			alert($("#demo").css("color"));
			/*每个jquery对象都有length属性*/
			alert($("#demo").length);
		</script>
	</body>
</html>